APPNAME = "cpfs"
VERSION = "0.1dev"

top = "."
build = "build"

def options(opt):
    opt.load("compiler_c compiler_cxx")

def configure(conf):
    conf.load("compiler_c compiler_cxx")
    conf.env.CXXFLAGS = ["-std=gnu++0x"]
    conf.env.CFLAGS = ["-std=gnu99"]
    conf.env.DEFINES = ["_FILE_OFFSET_BITS=64"]
    conf.env.INCLUDES = ["include"]

def build(bld):
    bld.stlib(
            target="cpfs",
            source=bld.path.ant_glob("libcpfs/*.c*"),
            includes=["include"],
            defines=["_FILE_OFFSET_BITS=64"],
        )
    bld.program(source=["src/mount.cpfs.c", "src/cpfsfuse.c"], use="cpfs")
